package demo;

/**
 * @author ZhouWeiBo
 * @create 2022/6/7
 */
public class Leader extends AbstractHandler{

    @Override
    public int processLevel() {
        return 0;
    }

    @Override
    public void process(Integer processLevel) {
        if (processLevel() == processLevel){
            System.out.println("Leader已处理！");
        }else{
            System.out.println("Leader无法处理，已移交下一责任人处理！");
            nextHandler.process(processLevel);
        }
    }
}
